package com.aat.restful.springmvc.web;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.aat.restful.common.User;

@Controller
@Scope("prototype")
@RequestMapping("user")
public class TestController {

	@RequestMapping(value = "list", produces = { "application/json;charset=UTF-8" })
	@ResponseBody
	public Object list() {
		return new User().getUsers().toString();
	}

	@RequestMapping(value = "test", produces = { "application/json;charset=UTF-8" })
	@ResponseBody
	public Object test() {
		return "hello 你好";
	}
}
